BenSelect Documentation
Remove all punctuation marks from a field
Send Feedback
JScript Examples > JScript for Forms > Remove all punctuation marks from a field

Glossary Item Box

The following script removes all punctuation marks from a field:

if (Event.Value)

Event.Value = Event.Value.Replace(',',' ').Replace('.',).Replace(':',).Replace('!',).Replace('-',' ').Replace('(',).Replace(')',).Replace(';',).Replace('\,).Replace('\"',).Replace('?',);

©2024. All Rights Reserved.